FILE: CART:ROB HEWLETT-PACKARD: CART (c) Coleco 1984 Fri, 18 May 1984, 14:59 Page 1
1 ;^Z80^
3
4 ; This is an example of the OCB pointer following the game name
5 ;section and how to store the boot device number for future use.
6 ;The RAM at 8000H is defined in greater detail in the ColecoVision
7 ;Programmers Manual.
8
9 8000 ORG 8000H
10 0000 ____ EQU 0000
11 ;** CARTRIDGE SOFTWARE POINTERS 8000H **
12 ; --------------------------------------------
13
14 8000 55 AA DEFB 55H,0AAH ;Cartridge present: Colecovision logo
15 8002 0000 DEFW ____ ;Pointer to the sprite name table
16 8004 0000 DEFW ____ ;Pointer to the sprite order table
17 8006 0000 DEFW ____ ;Pointer to the working buffer for WR_SPR_NM_TBL
18 8008 0000 DEFW ____ ;Pointer to the hand controller input areas
19 800A 3E80 DEFW MAIN_PROG ;Entry point to the user program
20
21 ;****************************************************************
22
23 800C C3 3980 JP RSTX ;RST 08
24 800F C3 3980 JP RSTX ;RST 10
25 8012 C3 3980 JP RSTX ;RST 18
26 8015 C3 3980 JP RSTX ;RST 20
27 8018 C3 3980 JP RSTX ;RST 28
28 801B C3 3980 JP RSTX ;RST 30
29
30 ;* THIS IS THE MASKABLE INTERRUPT SOFT VECTOR
31 801E C3 3C80 JP MASK_INT
32
33 ;* THIS IS THE NMI SOFT VECTOR.
34 8021 C3 3A80 JP VDPINT
35
36 ;****************************************************************
37
38 ; ** Game name section **
39
40 8024 53 55 50 45 DEFB "SUPER"
41 8028 52
42 8029 2F 47 41 4D DEFB "/GAMES ",1DH,"/1984"
43 802D 45 53 20 1D
44 8031 2F 31 39 38
45 8035 34
46
47 ; 1DH = Copyright symbol
48 ; 1EH,1FH = Trade mark symbol
49
50 ;****************************************************************
51
52 EXT OCB
53
54 8036 0000# DEFW OCB ; A pointer to the OCB must follow the
55 ;date in the game name
56
FILE: CART:ROB HEWLETT-PACKARD: CART (c) Coleco 1984 Fri, 18 May 1984, 14:59 Page 2
57 8038 08 DEV_ID DEFB 8 ; This is the default DEVICE_ID. See MAIN_PROG (below) for applications
58 ;booted from a different device.
59 ;****************************************************************
60
61 ;****************************************************************
62
63 8039 C9 RSTX RET ;Z80 restarts to be defined
64
65 ;----------------------------------
66 803A ED 45 VDPINT RETN ;Non maskable interrupt processing-
67 ;Normally used for critical timing:
68 ; music
69 ; processing timers
70 ; sprite motion processing
71
72 ;----------------------------------
73 803C ED 4D MASK_INT RETI ;Z80 maskable interrupt vector-
74 ;Normally used with spinner switch:
75 ; steering wheel
76 ; sports controller
77 ; roller controller
78
79 EXT _HARD_INIT,COLDSTART
80 803E MAIN_PROG
81 803E 78 LD A,B ; Main prog is entered with the device ID in the B register.
82 ;If it is not saved, the DDP manager or application will only
83 ;run from Drive A.
84 803F 32 3880 LD [DEV_ID],A
85
86 ; The rest of the application follows...
0 Error(s) Detected.
66 Absolute Bytes. 9 Symbols Detected.
FILE: CART:ROB HEWLETT-PACKARD: CART (c) Coleco 1984 Fri, 18 May 1984, 14:59 Page 3
Value Symbol Defined Referenced:
0000# COLDSTART 79
8038 DEV_ID 57 84
803E MAIN_PROG 80 19
803C MASK_INT 73 31
0000# OCB 52 54
8039 RSTX 63 23 24 25 26 27 28
803A VDPINT 66 34
0000# _HARD_INIT 79
0000 ____ 10 15 16 17 18